package dao

import (
	"context"
	"ruoyi-go-echo-ddd/internal/domain/model"
	"ruoyi-go-echo-ddd/internal/infrastructure/http/request"
)

// SysMenuResourcesDao 系统菜单资源对应表Dao接口
type SysMenuResourcesDao interface {
	Insert(ctx context.Context, sysMenuResources *model.SysMenuResources) (*model.SysMenuResources, error)
	Update(ctx context.Context, sysMenuResources *model.SysMenuResources) (int64, error)
	BatchInsert(ctx context.Context, list []*model.SysMenuResources) ([]int64, error)
	SelectById(ctx context.Context, id int64) (*model.SysMenuResources, error)
	SelectPage(ctx context.Context, param *request.SysMenuResourcesReq) ([]*model.SysMenuResources, int64, int64, error)
	BatchDelete(ctx context.Context, ids []any) (int64, error)
	SelectAllForExcel([]*model.SysMenuResources, error)
}
